#!/usr/bin/env bash

GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w"  -o tmp/x86_64/proxy
GOOS=darwin GOARCH=arm64 go build -ldflags "-s -w"  -o tmp/aarch64/proxy

lipo -create tmp/x86_64/proxy tmp/aarch64/proxy  -output tmp/proxy
